package cn.singno.bob.jpa.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;

import cn.singno.bob.jpa.entity.Student;
import cn.singno.bob.jpa.entity.User;

public interface UserService {

	
	public User save(User user);
	
	public User findBy(String id, String name);
	
	public User findById(String id);
	
	public int update(String name, String id);
	
	public void delete(String id);
	
	public List<User> findAll();
	
	public long count();

	public Page<User> find(int pageNow, int pageSize);
	
	public List<User> find2ByName(String name);
	
	public List<User> findByName(String name);
	
	public Page<User> findByName(String name, int pageNow, int pageSize);
	
	public User leftJoin(String userId);
	
	public Page<User> leftJoin(String userId, int pageNow, int pageSize);
	
	public Map<String, Object> findMap(String userId);
	
	public List<Map<String, Object>> findMap3(String userName);
	
	
	public Page<Map<String, Object>> findMap4(String userName, int pageNow, int pageSize);
	
	public Page<User> findNativAll();
	
	public List<User> cusFind(String name);
	
	public List<User> bobExp(Student student);
	
}
